import  service from "@/common/request.js"

// 通知公告
export const getNotice = (params) => service.get('/api/appletapi/getNotice', params, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 菜单
export const listFoodMenu = (params) => service.get('/api/appletapi/listFoodMenu', params, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 取餐点列表
export const listQcd = (params) => service.get('/api/appletapi/listQcd', params, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 设置信息【点餐截止时间】
export const getSetInfo = (params) => service.get('/api/appletapi/getSetInfo', params, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 下单
export const placeAnOrder = (params) => service.post('/api/appletapi/placeAnOrder', params)